<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    public function run() {
        $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV, true);
        $db = Zend_DB::factory($config->resources->db);
        $registry = Zend_Registry::getInstance();
        $registry->set('database', $db);
        parent::run();
    }

}

